package com.nageoffer.jobtrain.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nageoffer.jobtrain.admin.common.database.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 竞赛-OJ题目关联实体类
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_contest_question")
public class ContestQuestionDO extends BaseDO {
    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 竞赛id - 主键
     */
    private Long contestId;

    /**
     * oj题目id - 主键
     */
    private Long questionId;

    /**
     * 创建竞赛-oj关系管理员用户
     */
    private Long createOperator;

    /**
     * 更新竞赛-oj关系管理员用户
     */
    private Long updateOperator;

    /**
     * 竞赛题目排序字段
     */
    private Integer sortDesc;
}